<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>邮件内容</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            background: url('/static/background.jpg') no-repeat center center fixed;
            background-size: cover;
        }
        .container {
            text-align: center;
            background-color: rgba(255, 255, 255, 0.8); /* Optional: to improve text visibility */
            padding: 20px;
            border-radius: 10px;
            margin-top: 10%; /* Adjust this value to move the container up or down */
            width: 80%;
            max-width: 600px;
        }
        h1 {
            font-size: 48px; /* Enlarged font size for the title */
            margin-bottom: 40px; /* Add some spacing below the title */
        }
        p {
            text-align: left; /* Align text to the left */
            font-size: 18px; /* Enlarged font size for the email details */
            margin-bottom: 20px;
        }
        strong {
            font-weight: bold;
        }
        button {
            margin-top: 10px;
            padding: 10px 20px;
            font-size: 18px; /* Enlarged font size for the button */
            text-decoration: none;
            color: white;
            background-color: #007bff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        a {
            text-decoration: none; /* Remove underline from links */
        }
    </style>
</head>
<body>
    <header>
        <!-- 头部内容 -->
    </header>
    <div class="container">
        <section id="main">
            <h1>邮件内容</h1>
            <!-- 邮件内容 -->
            <p><strong>主题：</strong>{{ email.title }}</p>
            <p><strong>时间：</strong>{{ email.create_time }}</p>
            <p><strong>内容：</strong>{{ email.textbody }}</p>
            <form action="{{ url_for('main.delete_email', eid=email.eid) }}" method="post">
                <button type="submit">删除邮件</button>
            </form>
            
            <a href="{{ url_for('main.inbox') }}"><button>返回收件箱</button></a>
        </section>
    </div>
</body>
</html>